package csel.model;

public abstract class TakeableItem extends Item implements java.io.Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Entity carriedBy;
	String description;

	public abstract boolean touch(Entity e);

	public Entity getCarriedBy()
	{
		return carriedBy;
	}

	public void setCarriedBy(Entity carriedBy)
	{
		this.carriedBy = carriedBy;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}
	public Tile getLocation()
	{
		if(carriedBy != null)
		{
			return carriedBy.getLocation();
		}
		else
		{
			return location;
		}
	}
}
